package com.ysqcould.allocation.domain;


import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 积分记录--积分账号对象 t_integral_account
 * 
 * @author ruoyi
 * @date 2022-06-30
 */
public class IntegralAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 积分类型：1活跃积分，2贡献积分 */
    @Excel(name = "积分类型：1活跃积分，2贡献积分")
    private Long type;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 用户总积分 */
    @Excel(name = "用户总积分")
    private Long totalScore;

    /** 消耗积分 */
    @Excel(name = "消耗积分")
    private Long expendScore;

    /** 可用积分 */
    @Excel(name = "可用积分")
    private Long usableScore;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setTotalScore(Long totalScore) 
    {
        this.totalScore = totalScore;
    }

    public Long getTotalScore() 
    {
        return totalScore;
    }
    public void setExpendScore(Long expendScore) 
    {
        this.expendScore = expendScore;
    }

    public Long getExpendScore() 
    {
        return expendScore;
    }
    public void setUsableScore(Long usableScore) 
    {
        this.usableScore = usableScore;
    }

    public Long getUsableScore() 
    {
        return usableScore;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("asId", getAsId())
            .append("totalScore", getTotalScore())
            .append("expendScore", getExpendScore())
            .append("usableScore", getUsableScore())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
